package com.ny.service;

import com.ny.entity.Student;

import java.sql.SQLException;
import java.util.List;

public interface StudentService {
    int add(Student student) throws SQLException, ClassNotFoundException;
    Student login(String studentName, String studentPassword) throws SQLException;
    Student findById(int studentId) throws SQLException;
    int updatePassword(int studentId, String studentPassword) throws SQLException;
    int updatePhone(int studentId, String studentPhone) throws SQLException;
    List<Student> findAllStudent() throws SQLException;
    int update(Student student) throws SQLException;
    int delete(int studentId) throws SQLException;
}
